package com.mox.enterprise.enums;

/**
 * @author mox
 * @time 2020/2/17 23:38
 */

public enum ApiCode {

    /**
     * 数据获取信息
     */
    SUCCESS(200, "数据获取成功"),
    TOKEN_INVALID(40101, "accessToken已失效");


    /**
     * 状态码
     */
    Integer status;

    /**
     * 状态信息
     */
    String msg;

    ApiCode(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
